﻿using System;
using BIS.Portal.Core.Base;
using BIS.Portal.Core.Global;

namespace BIS.Portal.Modules.CMS
{
    public partial class CmsSiteMapControl_Settings : ControlSettingBase
    {
        #region Get data settings
        public string ClassNamRoot
        {
            get { return GetControlSetting<string>(ModuleSettingNames.CmsSiteMap.txtClassRoot, PortalContext.LanguageAlias); }
        }
        public string ClassNamChild
        {
            get { return GetControlSetting<string>(ModuleSettingNames.CmsSiteMap.txtClassChild, PortalContext.LanguageAlias); }
        }
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public override void SaveSettings(System.Collections.Generic.Dictionary<string, string> settings)
        {
            SetControlSettingForAllLanguages(txtClassRoot.ID, ModuleSettingNames.CmsSiteMap.txtClassRoot, settings);
            SetControlSettingForAllLanguages(txtClassChild.ID, ModuleSettingNames.CmsSiteMap.txtClassChild, settings);
        }
    }
}